<?php
class mcz_Exception extends Exception
{
  	private $errContext;
    private $errFile;
    private $errLine;

  	public function __construct($message, $code = null, $file = null, $line = null, $context = null)
    {
        parent::__construct($message, $code);
        $this->errFile    = $file;
        $this->errLine    = $line;
        $this->errContext = $context;
    }

    public function __get($key)
    {
        if(isset($this->$key))
        {
            return $this->$key;
        }
    }
}